package cn.mengfly.testnrz.im.server.cocurrent;

/**
 * 异步任务处理类
 *
 * @author Mengfly
 */
public interface CallBackTask<R> {

    R execute() throws Exception;

    void onBack(R r);

    void onException(Throwable t);

}
